home *** CD-ROM | disk | FTP | other *** search
Makefile | 2000-05-25 | 1.3 KB | 62 lines |
- # From Thinking in C++, 2nd Edition
- # At http://www.BruceEckel.com
- # (c) Bruce Eckel 1999
- # Copyright notice in Copyright.txt
- # Automatically-generated MAKEFILE
- # For examples in directory C04
- # using the egcs compiler
- # Note: does not make files that will
- # not compile with this compiler
- # Invoke with: make -f egcs.makefile
-
- CPP = g++
- OFLAG = -o
- .SUFFIXES : .o .cpp .c
- .cpp.o :
- $(CPP) $(CPPFLAGS) -c $<
- .c.o :
- $(CPP) $(CPPFLAGS) -c $<
-
- all: \
- CLibTest \
- CppLibTest \
- Sizeof \
- StackTest \
- Scoperes
-
- test: all
- CLibTest
- CppLibTest
- Sizeof
- StackTest NestTest.cpp
- Scoperes
-
- bugs:
- @echo No compiler bugs in this directory!
-
- CLibTest: CLibTest.o CLib.o
- $(CPP) $(OFLAG)CLibTest CLibTest.o CLib.o
-
- CppLibTest: CppLibTest.o CppLib.o
- $(CPP) $(OFLAG)CppLibTest CppLibTest.o CppLib.o
-
- Sizeof: Sizeof.o
- $(CPP) $(OFLAG)Sizeof Sizeof.o
-
- StackTest: StackTest.o Nested.o
- $(CPP) $(OFLAG)StackTest StackTest.o Nested.o
-
- Scoperes: Scoperes.o
- $(CPP) $(OFLAG)Scoperes Scoperes.o
-
-
- CLib.o: CLib.cpp CLib.h
- CLibTest.o: CLibTest.cpp CLib.h
- CppLib.o: CppLib.cpp CppLib.h
- CppLibTest.o: CppLibTest.cpp CppLib.h ../require.h
- Sizeof.o: Sizeof.cpp CLib.h CppLib.h
- Nested.o: Nested.cpp Stack.h ../require.h
- StackTest.o: StackTest.cpp Stack.h ../require.h
- Scoperes.o: Scoperes.cpp
-
-